package com.code.day03;

import java.util.Random;
import java.util.Scanner;

public class Demo05Random {
    public static void main(String[] args) {
        Random random =new  Random();
        Scanner sc = new Scanner(System.in);
        int b =random.nextInt(100)+1;
        while (true){
            int a =sc.nextInt();
            if(a > b){
                System.out.println("猜大了");
            }else if (a<b){
                System.out.println("猜小了");
            }else{
                System.out.println("猜对了");
                break;
            }
        }
    }
}
